import os

for i in range(1, 200):
    prefix = "nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar "
    emailId = prefix + str(i).zfill(2)

    jar_cmd = 'java -Doperation.name=redis ' + '-DemailId=' + emailId + ' -Drun.in.aws=true -jar  toredis.jar'
    cmd = 'nohup ' + jar_cmd + ' > ' + './redis_log/' + emailId + "_redis" + ".log &"
    print(cmd)
    # os.system(cmd)
print(a)
# os.system()


"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 40 -e 50 -r 35.226.4.231 > 50.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 50 -e 60 -r 35.226.4.231 > 60.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 60 -e 70 -r 35.226.4.231 > 70.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 70 -e 80 -r 35.226.4.231 > 80.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 80 -e 90 -r 35.226.4.231 > 90.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 90 -e 100 -r 35.226.4.231 > 100.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 100 -e 110 -r 35.226.4.231 > 110.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 110 -e 120 -r 35.226.4.231 > 120.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 120 -e 130 -r 35.226.4.231 > 130.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 130 -e 140 -r 35.226.4.231 > 140.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 140 -e 150 -r 35.226.4.231 > 150.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 150 -e 160 -r 35.226.4.231 > 160.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 160 -e 170 -r 35.226.4.231 > 170.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 170 -e 180 -r 35.226.4.231 > 180.log &"
"nohup java -jar -Xmx4g -Xms4g  googleMoveStorage.jar -s 180 -e 190 -r 35.226.4.231 > 190.log &"

"nohup java -jar -Xmx31g -Xms31g  googleMoveStorage.jar -s 130 -e 170 -r 35.226.4.231 > 31GMem.log &"

"nohup java -jar -Xmx20g -Xms20g  googleMoveStorage.jar -s 170 -e 180 -r 35.226.4.231 > 20GMem.log &"

"nohup java -jar -Xmx8g -Xms8g  googleMoveStorage.jar -s 200 -e 210 -r 35.226.4.231 > 200-210.log &"
"nohup java -jar -Xmx8g -Xms8g  googleMoveStorage.jar -s 210 -e 220 -r 35.226.4.231 > 210-220.log &"
"nohup java -jar -Xmx8g -Xms8g  googleMoveStorage.jar -s 220 -e 230 -r 35.226.4.231 > 220-230.log &"
"nohup java -jar -Xmx16g -Xms16g  googleMoveStorage.jar -s 200 -e 240 -r 35.226.4.231 > 200-240.log &"

"nohup java -jar -Xmx31g -Xms31g  googleMoveStorage.jar -s 240 -e 340 -n 30 > new1.log &"

"nohup java -jar -Xmx12g -Xms12g  googleMoveStorage.jar -s 120 -e 180 -n 20 > new1.log &"

"nohup java -jar -Xmx31g -Xms31g  googleMoveStorage.jar -s 1 -e 120 -n 30 > new1.log &"
